package com.xmy.cultivate.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum ChargeModeEnum {
    //授课模式，收费模式，1按课时收费，2按时间收费，3按期收费（对应字典表）
    NO(0,"无"),
    HOUR(1,"课次"),
    TIME(2,"时间"),
    EXPECT(3,"按期");

    @EnumValue
    private Integer key;

    @JsonValue
    private String value;

    ChargeModeEnum(Integer key,String value){
        this.key = key;
        this.value = value;
    }
}
